﻿using Prometheus;
using System;
using System.Collections.Generic;
using System.Text;

namespace Helpers
{
    public class PrometheusHelperOptions
    {
        /// <summary>
        /// 是否开启MetricPusher,开启后需要配置MetricPusherOptions
        /// </summary>
        public bool IsStartMetricPusher { get; set; }
        /// <summary>
        /// MetricPusher配置
        /// </summary>
        public MetricPusherOptions MetricPusherOptions { get; set; }
        /// <summary>
        /// 是否开启HttpMetrics 开启后需要放在app.UseRouting()后面
        /// </summary>
        public bool IsUseHttpMetrics { get; set; }
        /// <summary>
        /// 获取ip的url 默认http://192.168.0.57:50170/ip
        /// </summary>
        public string IpParserUrl { get; set; } = "http://192.168.0.57:50170/ip";
    }
}
